package com.example.wcdb;


import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Update;

import java.util.List;

public interface BaseDao<T> {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    long insert(T item);

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    long[] insert(List<T> items);

    @Update
    int update(T item);

    @Update
    int update(List<T> items);

    @Delete
    int delete(T item);

    @Delete
    int delete(List<T> items);
}
